package com.dao;

import com.model.VenderDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VenderDeviceMapper {
    int insert(VenderDevice record);

    int insertSelective(VenderDevice record);

    int deleteByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(VenderDevice record);

    int updateByPrimaryKey(VenderDevice record);

    VenderDevice selectByPrimaryKey(Long id);

    List<VenderDevice> selectByCondition(VenderDevice  venderDevice);


    List<VenderDevice> selectBySysUserIdType3(@Param("sysUserId") Long sysUserId);

//    List<VenderDevice> selectByAgent(Long agent);
    List<VenderDevice> selectByAgent(@Param("agent") Long agent,@Param("deviceSn") String deviceSn,@Param("hospitalId") Long hospitalId);

    int updateAgentByHospitalId(@Param("sysUserId") Long sysUserId,@Param("hospitalId" )Long hospitalId);

}